package xyz.luhui1hao.sell.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import xyz.luhui1hao.sell.domain.OrderDetail;
import xyz.luhui1hao.sell.enums.OrderStatusEnum;
import xyz.luhui1hao.sell.enums.PayStatusEnum;
import xyz.luhui1hao.sell.utils.serializer.Date2LongSerializer;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @ClassName OrderDTO
 * @Description TODO
 * @Author luhui1hao
 * @Date 2018/8/22 上午10:56
 * @Version 1.0
 */
@Data
//@JsonInclude(JsonInclude.Include.NON_NULL)
public class OrderDTO {
    //订单Id
    private String orderId;
    //买家名字
    private String buyerName;
    //买家手机号
    private String buyerPhone;
    //买家地址
    private String buyerAddress;
    //买家openid
    private String buyerOpenId;
    //订单总金额
    private BigDecimal orderAmount;
    //订单状态 默认0为新下单
    private Integer orderStatus ;
    //支付状态 默认0为未付款
    private Integer payStatus;
    //创建时间
    @JsonSerialize(using = Date2LongSerializer.class)
    private Date createTime;
    //修改时间
    @JsonSerialize(using = Date2LongSerializer.class)
    private Date updateTime;

    private List<OrderDetail> orderDetailList;
}
